package com.market.goods.dao.mongo;

import lombok.Data;
import lombok.ToString;
import org.springframework.data.mongodb.core.mapping.Document;

import javax.persistence.Column;
import java.util.Date;

@ToString
@Data
@Document(collection="activityOrder")
public class ActivityOrderCollection {
    /**
     *编号
     */
    private Long id;

    /**
     * 活动id
     */
    @Column(name = "activity_id")
    private Long activityId;

    /**
     * 订单编号
     */
    @Column(name = "order_id")
    private Long orderId;

    /**
     * 创建时间
     */
    @Column(name = "create_time")
    private Date createTime;
}
